package com.bootdo.system.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-02-04 11:46:52
 */
public class ZichanhistoryDO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//id
	private Long id;
	//用户id
	private Long userid;
	//金额
	private BigDecimal amount;
	//金额
	private Date createtime;
	//交易类型
	private String jiaoyitype;
	//接收人userid
	private Long touserid;
	//备注
	private String beizhu;

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：用户id
	 */
	public void setUserid(Long userid) {
		this.userid = userid;
	}
	/**
	 * 获取：用户id
	 */
	public Long getUserid() {
		return userid;
	}
	/**
	 * 设置：金额
	 */
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	/**
	 * 获取：金额
	 */
	public BigDecimal getAmount() {
		return amount;
	}
	/**
	 * 设置：金额
	 */
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	/**
	 * 获取：金额
	 */
	public Date getCreatetime() {
		return createtime;
	}
	/**
	 * 设置：交易类型
	 */
	public void setJiaoyitype(String jiaoyitype) {
		this.jiaoyitype = jiaoyitype;
	}
	/**
	 * 获取：交易类型
	 */
	public String getJiaoyitype() {
		return jiaoyitype;
	}
	/**
	 * 设置：接收人userid
	 */
	public void setTouserid(Long touserid) {
		this.touserid = touserid;
	}
	/**
	 * 获取：接收人userid
	 */
	public Long getTouserid() {
		return touserid;
	}
	/**
	 * 设置：备注
	 */
	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}
	/**
	 * 获取：备注
	 */
	public String getBeizhu() {
		return beizhu;
	}

	public String getamountvo(){

		return amount.stripTrailingZeros().toPlainString();
	}
}
